<template>
  <div id="app">
    <router-view></router-view>
    <Loading v-if="$store.getters.loading"></Loading>
  </div>
</template>

<script>
export default {
  name: "app",
  mounted() {
    var _this = this;
    this.fn.htmlSize();
    // 判断是不是iponeX
    this.$store.commit("checkOutIponeX", this.fn.isIponeX("iponex"));
    window.onload = function() {
      _this.delAdvertising();
    };
  },  
  methods: {
    delAdvertising() { 
      // 删除站长统计里面插入的广告
      var divlist = document.querySelectorAll("body>div");

      divlist.forEach(function(item) {
        if (item.id != "app") {
          item.style.display = "none";
        }
      });
    }
  }
};
</script>

<style lang="scss">
@import "./assets/css/common.scss";
</style>
